/*
 * @Author: HeAo
 * @Date: 2021-09-26 10:27:12
 * @LastEditTime: 2021-09-26 11:02:30
 * @LastEditors: HeAo
 * @Description:
 * @FilePath: \web2103-2105\web2103code\3-1-ES6\day02\7-Object静态方法.js
 * 别乱动！
 */
// Object.is(a,b)比较两个值是否一样
// console.log(NaN === NaN);
// console.log(Object.is(NaN, NaN));

let obj1 = {}
let obj2 = {
  name: 'zhangsan',
  age: 12
}
let obj3 = {
  name: 'lisi',
  gender: '男'
}
// Object.assign(obj1, obj2)
// console.log(obj1);
// console.log(obj1 === obj2);

// Object.assign(obj1, obj2, obj3)
// console.log(obj1);

Object.setPrototypeOf(obj1, obj2)

console.log(obj1.__proto__);
console.log(obj1.constructor.prototype);
console.log(Object.getPrototypeOf(obj1));